package ch2;

import java.util.Scanner;

public class Ex14 {
    public static void main(String[] args){
        Scanner console = new Scanner(System.in);
        System.out.println("输入重量：");
        double c = console.nextDouble();
        System.out.println("输入高度：");
        double x = console.nextInt() * 0.0254;
        System.out.println("体重指数是:" + ((c * 0.45359237) / ((x * x))));
    }
}
